package com.aimaoblog.vo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author PuaChen
 * @Create 2018-07-05 13:06
 */
public class CommentSearchResultVo implements Serializable {
    private String title;
    @JSONField(format = "yyyy/MM/dd")
    private Date time;
    private Integer count;
    private Integer id;

    public CommentSearchResultVo(Integer id, String title, Date time, Integer count) {
        this.title = title;
        this.time = time;
        this.count = count;
        this.id = id;
    }

    public CommentSearchResultVo() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "CommentSearchResultVo{" +
                "title='" + title + '\'' +
                ", time=" + time +
                ", count=" + count +
                '}';
    }
}
